package com.example.book.enums;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-12-16
 * Time: 11:37
 */
public enum ResultStatus {
    // 业务码200 成功 ， -1 失败 ， -2 未登录
    SUCCESS(200),
    FAIL(-1),
    NOLOGIN(-2),
    ;
    private int code;

    ResultStatus(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }



}
